import cn.itrip.common.RedisAPI;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import redis.clients.jedis.Jedis;

public class test {
    @org.junit.Test
    public void testRedis() {
//        ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml");
//        RedisAPI redisAPI = (RedisAPI) context.getBean("redisAPI");
//        redisAPI.set("ccc","hello");
        Jedis jedis=new Jedis("192.168.68.11",6379);
        jedis.auth("meng");
        jedis.set("he","lisi4");
        String app=jedis.get("he");
        System.out.println("值："+app);
    }
}
